import asyncio

from passlib.context import CryptContext

pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")


async def pwd_to_db(password):  # 密码加密
    hashed_pwd = pwd_context.hash(password)
    print(hashed_pwd)



asyncio.run(pwd_to_db("admin"))
